package org.javaweb.cms_web.mapper;

import org.javaweb.cms_web.model.Team;
import java.util.List;
import org.javaweb.cms_web.model.Team;

public interface TeamMapper {
    //模糊查询团队
    List<Team> getTeamsBySearch(String search);

    //根据团队ID查询团队成员
    List<String> getTeamMembers(int teamId);

    //删除团队
    void deleteTeam(Integer id);

    // 查询所有团队
    List<Team> selectAllTeams();

    // 根据团队ID查询团队
    Team selectTeamById(int teamId);

    // 插入新团队
    int insertTeam(Team team);

    // 更新团队信息
    int updateTeam(Team team);

}
